package cn.id68.www.http.builder;

import cn.id68.www.http.RequestCall;
import cn.id68.www.http.request.OrtherRequest;
import okhttp3.RequestBody;

/**
 * Created by Administrator on 2017/3/21.
 */

public class OtherRequestBuilder extends OkHttpRequestBuilder<OtherRequestBuilder> {

    private RequestBody requestBody;
    private String method;
    private String content;

    public OtherRequestBuilder(String method) {
        this.method = method;
    }

    @Override
    public RequestCall build() {
        return new OrtherRequest(url,tag,params,headers,id,requestBody,method,content).build();
    }

    public OtherRequestBuilder requestBody(RequestBody requestBody){
        this.requestBody = requestBody;
        return this;
    }
    public OtherRequestBuilder requestBody(String content){
        this.content = content;
        return this;
    }
}
